// 连接 mongodb 服务器
const mongoose = require('mongoose');
const dbURI = 'mongodb://localhost/flower';    //数据库名称
mongoose.connect(dbURI, { useNewUrlParser: true, useUnifiedTopology: true });
mongoose.connection.on('connected', function () {
    console.log(dbURI + ' 数据库连接成功！');
});

require('./models/admin-loginModel');
require('./models/adminModel');
require('./models/store-loginModel');
require('./models/storeModel');
require('./models/user-loginModel');
require('./models/superadmin-Model' );
require('./models/pictureModel' );
require('./models/goodsModel' );
require('./models/people-Model')